import Vue from 'vue'
import VueRouter from 'vue-router'
const Discovery = () =>import ('../views/discovery')
const Mvs = () =>import ('../views/mvs')
const Playlists = () =>import ('../views/playlists')
const Songs = () =>import ('../views/songs')
const Result = () =>import ('../views/result')
const Playlist = () =>import ('../views/playlist')
const Mv = () =>import ('../views/mv')
Vue.use(VueRouter)

  const routes = [
   {path:'/',redirect:'discovery'},
   {path:'/discovery',component:Discovery},
   {path:'/mvs',component:Mvs},
   {path:'/playlists',component:Playlists},
   {path:'/songs',component:Songs},
   {path:'/result',component:Result},
   {path:'/playlist',component:Playlist},
   {path:'/mv',component:Mv}
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
